package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.StandardMapper;
import com.ruoyi.system.domain.Standard;
import com.ruoyi.system.service.IStandardService;

/**
 * 评估标准Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-05-14
 */
@Service
public class StandardServiceImpl implements IStandardService 
{
    @Autowired
    private StandardMapper standardMapper;

    /**
     * 查询评估标准
     * 
     * @param standardId 评估标准主键
     * @return 评估标准
     */
    @Override
    public Standard selectStandardByStandardId(Long standardId)
    {
        return standardMapper.selectStandardByStandardId(standardId);
    }

    /**
     * 查询评估标准列表
     * 
     * @param standard 评估标准
     * @return 评估标准
     */
    @Override
    public List<Standard> selectStandardList(Standard standard)
    {
        return standardMapper.selectStandardList(standard);
    }

    /**
     * 新增评估标准
     * 
     * @param standard 评估标准
     * @return 结果
     */
    @Override
    public int insertStandard(Standard standard)
    {
        return standardMapper.insertStandard(standard);
    }

    /**
     * 修改评估标准
     * 
     * @param standard 评估标准
     * @return 结果
     */
    @Override
    public int updateStandard(Standard standard)
    {
        return standardMapper.updateStandard(standard);
    }

    /**
     * 批量删除评估标准
     * 
     * @param standardIds 需要删除的评估标准主键
     * @return 结果
     */
    @Override
    public int deleteStandardByStandardIds(Long[] standardIds)
    {
        return standardMapper.deleteStandardByStandardIds(standardIds);
    }

    /**
     * 删除评估标准信息
     * 
     * @param standardId 评估标准主键
     * @return 结果
     */
    @Override
    public int deleteStandardByStandardId(Long standardId)
    {
        return standardMapper.deleteStandardByStandardId(standardId);
    }
}
